import { GET } from '../../request';
import { Res } from '../../common';
import * as Types from './index.d';

/**
 * 获取门店列表
 * @param params
 * @returns
 */
export const getShopList = (
  params: Types.IGetShopListParams,
): Promise<Res<Types.IGetShopListRes>> => {
  return GET('/api/store_list', { ...params });
};

/**
 * 获取首页信息
 * @param params
 * @returns
 */
export const getHomeInfo = (
  params: Types.IGetHomeInfoParams,
): Promise<Res<Types.IGetHomeInfoRes>> => {
  return GET('/api/store_index', { ...params });
};
